<div class="function-title" style="display: inline-block;">列车故障数据</div>
<mat-form-field class="query-date">
  <mat-select placeholder="请选择列车号" [(value)]="selectedTrain">
    <mat-option value="列车001">列车001</mat-option>
  </mat-select>
</mat-form-field>
<mat-form-field class="query-date">
  <input matInput [matDatepicker]="fromtime" (dateChange)="fromChange($event)" placeholder="查询开始时间">
  <mat-datepicker-toggle matSuffix [for]="fromtime"></mat-datepicker-toggle>
  <mat-datepicker #fromtime></mat-datepicker>
</mat-form-field>
<mat-form-field class="query-date">
  <input matInput [matDatepicker]="totime"  (dateChange)="toChange($event)" placeholder="查询结束时间">
  <mat-datepicker-toggle matSuffix [for]="totime"></mat-datepicker-toggle>
  <mat-datepicker #totime></mat-datepicker>
</mat-form-field>
<button mat-raised-button color="primary" style="margin-left: 20px;" (click)="query($event)" [disabled]="queryIP">查询</button>
<ag-grid-angular style="width:800px;height:450px;"
  class="csf-material-grid fault-grid"
  [rowData]="rowData"
  [columnDefs]="columnDefs"
  [gridOptions]="gridOptions"
  (gridReady)="onGridReady($event)">
</ag-grid-angular>
